﻿using System.Collections.Generic;

namespace DuplicateFileFinder.Model
{
    public class SearchResultQueue
    {
        public static SearchResultQueue Instance = new SearchResultQueue();

        private volatile Queue<string> _queue;

        public int Count { get { return _queue.Count; } }

        private SearchResultQueue()
        {
            _queue = new Queue<string>();
        }

        public void EnQueue(string obj)
        {
            _queue.Enqueue(obj);
        }

        public string DeQueue()
        {
            return _queue.Dequeue();
        }

        public void Clear()
        {
            _queue.Clear();
        }
    }
}
